#ifndef SENDFILEWIDGET_H
#define SENDFILEWIDGET_H

#include <QWidget>
#include <QFile>
#include <QFileDialog>
#include <QList>
#include <QFileInfo>
#include <QMenu>
#include <QListWidgetItem>
#include <QDesktopServices>
#include <QMouseEvent>
namespace Ui {
class SendFileWidget;
}

class SendFileWidget : public QWidget
{
    Q_OBJECT

public:
    explicit SendFileWidget(QWidget *parent = nullptr);
    ~SendFileWidget();
    void selectFiles();
    void removeFile(int row);
private slots:
    void on_listWidget_customContextMenuRequested(const QPoint &pos);

    void on_listWidget_itemDoubleClicked(QListWidgetItem *item);

    void on_btn_cancel_clicked();

    void on_btn_send_clicked();
    void on_btn_addfile_clicked();

    void on_btn_deletefile_clicked();

    void on_btn_openindir_clicked();

protected:

signals:
    void selectedFileDone(QStringList);

private:
    Ui::SendFileWidget *ui;
    QList<QString> path;
    void addContent(QString filename);
};

#endif // SENDFILEWIDGET_H
